package com.rc.pojo.vo.activity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.core.handler.JacksonTypeHandler;
import com.rc.common.model.ImageModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ActivityDetailVO {
    @ApiModelProperty("农庄名称")
    private String farmName;

    @ApiModelProperty("活动id")
    private Long id;

    @ApiModelProperty("园区id")
    private Long areaId;

    @ApiModelProperty("活动价格")
    private BigDecimal price;

    @ApiModelProperty("活动名称")
    private String title;

    @ApiModelProperty("活动封面")
    @Column(typeHandler = JacksonTypeHandler.class)
    private List<ImageModel> imgs;

    @ApiModelProperty("活动地址")
    private String address;

    @ApiModelProperty("活动描述")
    private String description;

    @ApiModelProperty("活动内容")
    private String content;

    @ApiModelProperty("活动评分")
    private Double score;

    @ApiModelProperty("活动开始时间")
    @JsonFormat(pattern = "MM月dd日")
    private LocalDateTime beginTime;

    @ApiModelProperty("活动结束时间")
    @JsonFormat(pattern = "MM月dd日")
    private LocalDateTime endTime;

    @ApiModelProperty("今日库存")
    private Integer stock;

    @ApiModelProperty("是否收藏")
    private Boolean isCollect;

    @ApiModelProperty("农庄管理员id")
    private Long farmAdminId;

    private String farmAdminAvatar;
}
